var app = getApp()
Page({
  data: {
    youhuiquan: [
    ],
  },
  // shopsub: function() {
  //   wx.navigateTo({
  //     url: "/hyb_yl/shop/shop"
  //   });
  // },
  onLoad: function(n) {
    var bgc = wx.getStorageSync('color')
    wx.setNavigationBarColor({
      frontColor: "#ffffff",
      backgroundColor: bgc,
    })
    this.getMyallyouhuquan()
  },
  onReady: function() {},
  onShow: function() {},
  onHide: function() {},
  onUnload: function() {},
  getMyallyouhuquan: function() {
    var that = this
    app.util.request({
      'url': 'entry/wxapp/Allyouhuiquan',
      data: {
        op: 'wodeaillyouhuiquan',
        openid: wx.getStorageSync('openid')
      },
      success: function(res) {
        console.log(res)
        that.setData({
          youhuiquan:res.data
        })
      }
    })
  }
});